package com.easidea.tim.entity.system.orgnization;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.springside.core.dao.extend.Undeletable;

import com.easidea.tim.entity.BaseEntity;
@Entity(name="tim_orgnization_staff_teamwork")
@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@Cache(region="tim_orgnization_staff_teamwork",usage=CacheConcurrencyStrategy.READ_WRITE)
@Undeletable(status="deleted")
public class StaffTeamwork extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5839792950043097924L;
	private Long parentId; 
	private Long childId;
	
	@Column(name="parent_id",nullable=false)
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	@Column(name="child_id",nullable=false)
	public Long getChildId() {
		return childId;
	}
	public void setChildId(Long childId) {
		this.childId = childId;
	}

}
